package Context
{
    import ImageFile.Page;
    
    public class UndoItem
    {
        private var _ifname:String;
        private var _id:int;
        private var _eventid:int;
        private var _text:String;
        private var _beginsel:int
        private var _endsel:int;
        private var _ifile:Page;
        
        public function UndoItem(ifname:String, text:String, 
                                        eventid:int, itemid:int, 
                                        beginsel:int = 0, endsel:int = 0)
        {
            _ifname = ifname;
            _text = text;
            _eventid = eventid;
            _id = itemid;
            _beginsel = beginsel;
            _endsel = endsel;
        }
        
        public function get imageName():String {
            return _ifname;
        }
        
        public function get itemId():int {
            return _id;
        }
        
        public function get eventId():int {
            return _eventid;
        }
        
        public function get text():String {
            return _text;
        }
        
        public function get beginselect():int {
            return _beginsel;
        }
        
        public function get endselect():int {
            return _endsel;
        }
        
        public function setImageFile(fi:Page):void {
            _ifile = fi;
        }
        
        public function get imageFile():Page {
            return _ifile;
        }
    }
}